package com.hrt.web.shoppingCar.service;

import java.sql.Timestamp;
import java.util.List;

import com.hrt.bean.ShoppingCar;

public interface ShoppingCarService {
	public Long totalCount();

	public void  deleteById( Long[] ids) throws Exception;
	
	public void deleteByCarId(Long id);

	public void saveCar(ShoppingCar shoppingCar)throws Exception;

	public	List queryByPage(int pageIndex, int pageSize);

	public void updateCar(ShoppingCar shoppingCar);
	public ShoppingCar getCarById(Long CarId);
	/**
	 * 获取数据库当前时间
	 * @return
	 */
	public Timestamp getDate();
	/**
	 * 根据memberId获取礼品包
	 * @param memberId
	 * @return
	 */
	public Long getCarByMemberId(Long memberId);
	
	public List<ShoppingCar> getShoppingCarByMemberId(Long memberId);
}
